package com.ruoyi.common.banbeiPay;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author awu
 */
public class MyDateUtils {

    private MyDateUtils(){

    }

    public static SimpleDateFormat format (){
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
        return format;
    }

    public static String getDate2Str(Date date) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        return format.format(date);
    }

}
